//
//  MapViewController.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/2/23.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "MapViewController.h"

@interface MapViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation MapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title=@"查看地图";
    
    NSString  *string = @"<!DOCTYPE HTML> <html lang=\"en\"> <head> <meta charset=\"UTF-8\"/>  <title>test</title> </head> <body>";
    string = [string  stringByAppendingFormat:@"<div> <img src=\"%@\" style=\"vertical-align:bottom;width:100%%;height:auto\" /> </div>",_imgUrl];
    string = [string  stringByAppendingString:@"</body></html>"];
    [self.webView loadHTMLString:string baseURL:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
